#include "stdafx.h"
#include "PSShadowMap.h"

#include "HLSLEffect.h"

using namespace mgfx;

PSShadowMap::PSShadowMap()
{
	HLSLEffect * src = HLSLEffect::createFromFile("ShadowMap.fx");

	Effect = src->Effect;
	Technique = Effect->GetTechniqueByIndex(0);
	Pass = Technique->GetPassByIndex(0);

	gWVP = Effect->GetVariableByName("gWVP")->AsMatrix();
}
